package eic.muckup.garden;

import android.app.Activity;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.view.View;

public class LoginActivity extends Activity {
	
	private final String loginDone = "LoginPreference";
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main);
	}
	
	public void loginBtn(View view){
		SharedPreferences setting = getSharedPreferences(loginDone, Activity.MODE_PRIVATE);
		SharedPreferences.Editor settingEditor = setting.edit();
		
		settingEditor.putBoolean("TempLogin", true);
		settingEditor.commit();
		
		Intent intent = new Intent(this,Eic_mock_upActivity.class);
		startActivity(intent);
		
	}
}
